@extends('plugin.hostserver.front.layout.user')
@section('content')
    <div class="container tm-mt-big tm-mb-big">
        <div class="row">
            <div class="col-12 mx-auto tm-login-col">
                <div class="tm-bg-primary-dark tm-block tm-block-h-auto">
                    <div class="row">
                        <div class="col-12 text-center">
                            <h2 class="tm-block-title mb-4">修改登陆密码</h2>
                        </div>
                    </div>
                    <div class="row mt-2">
                        <div class="col-12">
                            <form action="{{ nroute('plugin.hostserver.user.handle') }}" id="updatePassword" method="post">
                                @csrf
                                <input type="hidden" name="type" value="{{ $type }}">

                                <div class="form-group @error('password') has-error @enderror">
                                    <label for="password">密码 *</label>
                                    <input type="password" data-rq="1" name="password" class="form-control" id="password"
                                           placeholder="输入密码">
                                    @error('password')
                                    <span class="help-block">{{ $message }}</span>
                                    @enderror
                                </div>
                                <div class="form-group @error('password') has-error @enderror">
                                    <label for="password">交易密码 *</label>
                                    <input type="password" data-rq="1" name="buy_password" class="form-control" id="buy_password"
                                           placeholder="输入交易密码">
                                    @error('password')
                                    <span class="help-block">{{ $message }}</span>
                                    @enderror
                                </div>
                                <div class="form-group @error('password') has-error @enderror">
                                    <label for="password">确认交易密码 *</label>
                                    <input type="password" data-rq="1" name="buy_password_confirmation" class="form-control" id="buy_password_confirmation"
                                           placeholder="输入确认交易密码密码">
                                    @error('password')
                                    <span class="help-block">{{ $message }}</span>
                                    @enderror
                                </div>


                                <div class="form-group mt-4">
                                    <button type="button" class="btn btn-info btn-block text-uppercase ajax-submit">
                                        修改
                                    </button>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection